package cn.tedu.boyou.acticle.mapper;

import cn.tedu.boyou.acticle.domain.Destination;
import cn.tedu.boyou.common.query.DestinationQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll();

    int updateByPrimaryKey(Destination record);

    List<Destination> selectForList(DestinationQuery qo);

    List<Destination> selectDestByDeep(int deep);

    List<Destination> selectDestByIds(Long[] refIds);

    void changeHotValue(@Param("id") Long id, @Param("hot") Boolean hot);

    void updateInfo(@Param("id") Long id, @Param("info") String info);
    List<Destination> selectSubDestByParentId(Long id);

    List<Destination> selectDestByParentId(long l);

    List<Destination> selectDestNameBydeep(int deep);

    Destination selectParentByName(Long destId);
}